package cn.seqdata.rpt.simple.query;

import org.springframework.jdbc.core.support.JdbcDaoSupport;

import com.google.common.collect.HashBasedTable;
import com.google.common.collect.Table;

public abstract class AbstractTableQuerier<R> extends JdbcDaoSupport {

	public Table<R, String, Object> get(Object... args) {
		Table<R, String, Object> table = HashBasedTable.create();
		query(table, args);
		return table;
	}

	abstract public void query(Table<R, String, Object> table, Object... args);
}
